package com.ray.rpc;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 服务启动类
 * Main
 */
public class MonitorServiceApplication{

	private static final Logger LOGGER = LoggerFactory.getLogger(MonitorServiceApplication.class);

	@SuppressWarnings({ "unused", "resource" })
	public static void main(String[] args) {
		LOGGER.info(">>>>> monitor-service 正在启动 <<<<<");
		ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("classpath:spring-service.xml");
		LOGGER.info(">>>>> monitor-service 启动完成 <<<<<");
		while(true){
			try {
				Thread.sleep(Long.MAX_VALUE);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}

}
